//
//  CommonDataManager.m
//  HXBaseProjectDemo
//
//  Created by YaSha_Tom on 2018/2/5.
//  Copyright © 2018年 亚厦装饰股份有限公司. All rights reserved.
//

#import "CommonDataManager.h"
#import "CommonApplicationModel.h"

@implementation CommonDataManager

static CommonDataManager *_datamanager = nil;

+ (CommonDataManager *)sharedDataManager {
    if (!_datamanager) {
        _datamanager = [[CommonDataManager alloc] init];
    }
    return _datamanager;
}

#pragma mark - 应用及权限

+ (NSArray *)getApplicationsData:(id)response {
    NSMutableArray *mutableArray = [NSMutableArray array];
    for (NSDictionary *dic in response) {
        NSLog(@"========%@",dic);
        CommonApplicationModel *model = [CommonApplicationModel yy_modelWithJSON:dic];
        [mutableArray addObject:model];
    }
    NSLog(@"-------%lu",(unsigned long)mutableArray.count);
    return [mutableArray copy];
}

@end
